<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

//Route::get('/',function(){
//    echo  env('ADMIN_DOMAIN'),env('WEB_DOMAIN');
//});
Route::group(['middleware' => ['web']], function () {
    /**
     * 后台管理
     */
    Route::group(['domain'=>env('ADMIN_DOMAIN')],function(){
        require (__DIR__ . '/Routes/Admin/routes.php');
    });
    /**
     * PC前台页面
     */
    Route::group(['domain'=>env('WEB_DOMAIN')],function(){
        require (__DIR__ . '/Routes/Web/routes.php');
    });
    /**
     * webapp页面
     */
    Route::group(['domain'=>env('WEBAPP_DOMAIN')],function(){
        require (__DIR__ . '/Routes/Webapp/routes.php');
    });
});
/**
 * 微信路由入口
 */
Route::group(['domain'=>env('WEIXIN_DOMAIN')],function(){
    require (__DIR__ . '/Routes/Weixin/routes.php');
});
/**
 * app API 接口地址
 */
//Route::group(['domain'=>'api.learning.me'],function(){
//    require (__DIR__ . '/Routes/App/routes.php');
//});

